﻿@{
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
@model FTBS.Models.Entities.User

<style>
    .Label {
        text-align: right;
        width: 40%;
        padding-right: 10px;
    }

    .Textbox {
        text-align: left;
    }
</style>

<div style="padding: 20px 20px 20px 20px;">
    <legend style="margin-top: 10px">THÔNG TIN CÁ NHÂN</legend>
    <table style="">
        <tr>
            <td style="text-align: center">
                <div style="padding: 20px 20px 20px 20px; width: 200px; height: 200px">
                    <img src="~/Image/SupplierImages/@Model.ImageURL" />
                </div>
                <div>
                    <input style="font-weight: bold" id="btnEdit" type="submit" value="Thay đổi thông tin" />
                </div>
            </td>
            <td style="width: 500px; height: 100%; margin-top: 20px; font-size: larger; align-content: flex-start">
                <div style="text-align: center; padding-bottom: 20px">
                    <table>
                        <tr style="width: 100%">
                            <td class="Label">
                                <a>Tên nhà cung cấp : </a>
                            </td>
                            <td class="Textbox">
                                @Model.FullName
                            </td>
                        </tr>
                        <tr>
                            <td class="Label">
                                <a>Địa chỉ : </a>
                            </td>
                            <td class="Textbox">
                                @Model.Address
                            </td>
                        </tr>
                        <tr>
                            <td class="Label"><a>Email : </a>
                            </td>
                            <td class="Textbox">
                                @Model.Email
                            </td>
                        </tr>
                        <tr>
                            <td class="Label">
                                <a>Điện thoại : </a>
                            </td>
                            <td class="Textbox">
                                @Model.PhoneNumber
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</div>
<script>
    $("#btnEdit").click(function () {
        window.location = "/Supplier/EditProfile?id=@Model.UserName";
    })
</script>


